﻿<%@ Page Title="BallonShop: Edit Product" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    CodeFile="EditProduct.aspx.cs" Inherits="Admin_EditProduct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <!-- Luu ID cua product (neu dang o cap nhat) -->
    <asp:Label ID="lblId" runat="server" Visible="false" />
    <!-- Hien thi ten trang web -->
    <asp:Label ID="lblTitle" runat="server" CssClass="title" />
    <!-- Hien thi cac thong bao thanh cong / that bai khi them moi/cap nhat 
product -->
    <asp:Label runat="server" ID="lblStatus" CssClass="status" />
    <!-- Form nhap cac thong tin ve category -->
    <table class="form">
        <tr>
            <td class="label">
                <span class="require">*</span>Category:
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlCategory" AppendDataBoundItems="true">
                    <asp:ListItem Value="0">-- Category --</asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ErrorMessage="Please select the category"
                    ControlToValidate="ddlCategory" SetFocusOnError="true" Display="Static" CssClass="failureNotification"
                    InitialValue="0" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="label">
                <span class="require">*</span>Name:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtName" CssClass="textEntry" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ErrorMessage="Please enter the product name"
                    ControlToValidate="txtName" SetFocusOnError="true" Display="Static" CssClass="failureNotification"
                    runat="server" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Description:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtDes" CssClass="textEntry" TextMode="MultiLine"
                    Rows="5" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Price:
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtPrice" CssClass="textEntry" Width="120" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Thumbnail:
            </td>
            <td>
                <asp:Label ID="lblThumnail" runat="server" />
                <asp:FileUpload ID="fuThumbnail" runat="server" />
                <asp:Button ID="btnUploadThumbnail" runat="server" Text="Upload" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Image:
            </td>
            <td>
                <asp:Label ID="lblImage" runat="server" />
                <asp:FileUpload ID="fuImage" runat="server" />
                <asp:Button ID="btnUploadImage" runat="server" Text="Upload" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Promo Front:
            </td>
            <td>
                <asp:CheckBox runat="server" ID="chkPromoFront" />
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button Text="Save" runat="server" ID="btnSave" />
                <input type="button" value="Cancel" onclick="location.href='Product.aspx'" />
                <input type="reset" value="Reset" runat="server" id="btnReset" />
            </td>
        </tr>
    </table>
</asp:Content>
